import { mapDict } from 'services/common'
export default {
  data() {
    return {
      dictData: {}
    }
  },
  methods: {
    async initDict() {
      const dictName = this.$options.dicts.toString('')
      const { data } = await mapDict({ dictName })
      this.dictData = data
    }
  },
  created() {
    this.initDict()
  }
}
